package com.daxin.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@TableName("user")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId
    @TableField("dx_id")
    private String dxId;
    private String name;
    private String username;
    private String password;
    private Integer status;
    private String tel;

    @TableField(fill = FieldFill.INSERT,value = "modified_time")
    private Date modifiedTime;
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    private Date createTime;

    private String email;
    private String portrait_src;

}
